home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-11-29 | 95.1 KB | 3,888 lines |
- *** ../mh-6.8.1/Patchlevel Fri Aug 20 13:07:34 1993
- --- Patchlevel Wed Aug 25 15:56:06 1993
- ***************
- *** 1 ****
- ! MH.6.8 patch.1
- --- 1 ----
- ! MH.6.8 patch.2
- *** ../mh-6.8.1/conf/mh-gen.8 Fri Aug 20 13:10:38 1993
- --- conf/mh-gen.8 Wed Aug 25 15:59:46 1993
- ***************
- *** 1,2 ****
- ! .\" @(#)$Id: mh-gen.8,v 2.111 1993/08/20 19:47:56 jromine Exp $
- .\" uneven inter-word spacing (nroff line adjusting) hampers readability
- --- 1,2 ----
- ! .\" @(#)$Id: mh-gen.8,v 2.112 1993/08/25 18:07:10 jromine Exp $
- .\" uneven inter-word spacing (nroff line adjusting) hampers readability
- ***************
- *** 3,5 ****
- .if n .na
- ! .TH MH-GEN 8 MH.6.8.1 [mh.6]
- .SH NAME
- --- 3,5 ----
- .if n .na
- ! .TH MH-GEN 8 MH.6.8.2 [mh.6]
- .SH NAME
- *** ../mh-6.8.1/conf/mhconfig.c Fri Aug 20 13:10:36 1993
- --- conf/mhconfig.c Wed Aug 25 15:59:45 1993
- ***************
- *** 1,7 ****
- /* mhconfig.c - configure MH */
- /* cc [-DSYS5] mhconfig.c -o mhconfig */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mhconfig.c,v 2.69 1993/08/20 19:47:46 jromine Exp $";
- #endif /* lint */
-
- #include <ctype.h>
- --- 1,7 ----
- /* mhconfig.c - configure MH */
- /* cc [-DSYS5] mhconfig.c -o mhconfig */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mhconfig.c,v 2.70 1993/08/25 18:07:10 jromine Exp $";
- #endif /* lint */
-
- #include <ctype.h>
- ***************
- *** 29,35 ****
- #define MAKE "../%s/Makefile"
-
- #define WARNING "This file is automatically generated. Do not edit!"
- ! #define MHRELEASE "6.8.1" /* for version: "Maj.min.pat" */
- #define MHCENTERFOOT "MH.6.8" /* for nroff page footers */
- #define MHLEFTFOOT "[mh.6]" /* [mh.6] MH.6.6 page# */
- #define MHSLIBVER "3.2" /* SunOS4 shared library version */
- --- 29,35 ----
- #define MAKE "../%s/Makefile"
-
- #define WARNING "This file is automatically generated. Do not edit!"
- ! #define MHRELEASE "6.8.2" /* for version: "Maj.min.pat" */
- #define MHCENTERFOOT "MH.6.8" /* for nroff page footers */
- #define MHLEFTFOOT "[mh.6]" /* [mh.6] MH.6.6 page# */
- #define MHSLIBVER "3.2" /* SunOS4 shared library version */
- *** ../mh-6.8.1/h/mshsbr.h Fri Aug 20 13:10:34 1993
- --- h/mshsbr.h Wed Aug 25 15:59:42 1993
- ***************
- *** 1,5 ****
- /* mshsbr.h - definitions for msh */
- ! /* @(#)$Id: mshsbr.h,v 1.5 1992/05/12 22:04:01 jromine Exp $ */
-
- struct Cmd {
- char line[BUFSIZ];
- --- 1,5 ----
- /* mshsbr.h - definitions for msh */
- ! /* @(#)$Id: mshsbr.h,v 1.6 1993/08/25 17:16:28 jromine Exp $ */
-
- struct Cmd {
- char line[BUFSIZ];
- ***************
- *** 78,81 ****
- #endif /* BSD42 */
-
-
- ! long lseek ();
- --- 78,81 ----
- #endif /* BSD42 */
-
-
- ! off_t lseek ();
- *** ../mh-6.8.1/mts/sendmail/smail.c Fri Aug 20 13:09:34 1993
- --- mts/sendmail/smail.c Wed Aug 25 15:58:24 1993
- ***************
- *** 1,6 ****
- /* smail.c - MH interface to SendMail/SMTP */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: smail.c,v 1.24 1993/08/20 16:14:30 jromine Exp $";
- #endif
-
- /* LINTLIBRARY */
- --- 1,6 ----
- /* smail.c - MH interface to SendMail/SMTP */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: smail.c,v 1.25 1993/08/25 17:17:29 jromine Exp $";
- #endif
-
- /* LINTLIBRARY */
- ***************
- *** 113,120 ****
- static int sm_werror(), smhear(), sm_rrecord(), sm_rerror();
-
- #ifdef MPOP
- ! extern int errno, sys_nerr;
- extern char *sys_errlist[];
- extern char **brkstring (), **copyip (), *getcpy ();
- #endif
-
- --- 113,123 ----
- static int sm_werror(), smhear(), sm_rrecord(), sm_rerror();
-
- #ifdef MPOP
- ! extern int errno
- ! #ifndef BSD44
- ! extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
- extern char **brkstring (), **copyip (), *getcpy ();
- #endif
-
- *** ../mh-6.8.1/papers/changes/mh-changes.ms Fri Aug 20 13:09:32 1993
- --- papers/changes/mh-changes.ms Wed Aug 25 15:58:23 1993
- ***************
- *** 1,2 ****
- ! .\" @(#)$Id: mh-changes.ms,v 1.26 1993/08/20 17:11:02 jromine Exp $
- .\" Standard -ms macros
- --- 1,2 ----
- ! .\" @(#)$Id: mh-changes.ms,v 1.27 1993/08/25 18:11:13 jromine Exp $
- .\" Standard -ms macros
- ***************
- *** 6,8 ****
- .\" remember to update date in text below
- ! .DA "August 20, 1993"
- .if n \{\
- --- 6,8 ----
- .\" remember to update date in text below
- ! .DA "August 25, 1993"
- .if n \{\
- ***************
- *** 99,102 ****
- .KE
- ! .ds LH Changes for MH 6.8.1
- .bp
- .SH
- --- 99,113 ----
- .KE
- ! .ds LH Changes for MH 6.8.2
- .bp
- + .SH
- + CHANGES FOR MH 6.8.2
- + .LP
- + The MH.6.8.2 patch release contains only
- + internal changes to support the BSD 4.4
- + and 386BSD versions of
- + .SM
- + UNIX.
- + .NL
- + This is the current released version of \fIMH\fP
- + as of August 25, 1993.
- .SH
- *** ../mh-6.8.1/sbr/advertise.c Fri Aug 20 13:08:39 1993
- --- sbr/advertise.c Wed Aug 25 15:57:18 1993
- ***************
- *** 1,6 ****
- /* advertise.c - the heart of adios */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: advertise.c,v 1.3 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* advertise.c - the heart of adios */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: advertise.c,v 1.4 1993/08/25 17:18:31 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 16,23 ****
- --- 16,25 ----
- */
-
- extern int errno;
- + #ifndef BSD44 /* in <stdio.h> */
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- /* */
-
- *** ../mh-6.8.1/sbr/fdcompare.c Fri Aug 20 13:08:49 1993
- --- sbr/fdcompare.c Wed Aug 25 15:57:33 1993
- ***************
- *** 1,9 ****
- /* fdcompare.c - are two files identical? */
-
- #include "../h/mh.h"
- #include <stdio.h>
-
- ! long lseek();
-
-
- fdcompare (fd1, fd2)
- --- 1,13 ----
- /* fdcompare.c - are two files identical? */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: fdcompare.c,v 1.4 1993/08/25 18:29:28 jromine Exp $";
- + #endif
-
- #include "../h/mh.h"
- #include <stdio.h>
- + #include <sys/types.h> /* for off_t */
-
- ! off_t lseek();
-
-
- fdcompare (fd1, fd2)
- ***************
- *** 36,42 ****
- resp = 0;
-
- leave: ;
- ! (void) lseek (fd1, 0L, 0);
- ! (void) lseek (fd2, 0L, 0);
- return resp;
- }
- --- 40,46 ----
- resp = 0;
-
- leave: ;
- ! (void) lseek (fd1, (off_t)0, 0);
- ! (void) lseek (fd2, (off_t)0, 0);
- return resp;
- }
- *** ../mh-6.8.1/sbr/m_getdefs.c Fri Aug 20 13:08:45 1993
- --- sbr/m_getdefs.c Wed Aug 25 15:57:29 1993
- ***************
- *** 1,6 ****
- /* m_getdefs.c - read the user's MH environment */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: m_getdefs.c,v 1.6 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* m_getdefs.c - read the user's MH environment */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: m_getdefs.c,v 1.7 1993/08/25 17:20:41 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 27,33 ****
- FILE *FOpen ();
- int FClose ();
-
- ! long lseek ();
- #endif /* OVERHEAD */
-
-
- --- 27,33 ----
- FILE *FOpen ();
- int FClose ();
-
- ! off_t lseek ();
- #endif /* OVERHEAD */
-
-
- ***************
- *** 210,216 ****
- return fp;
- }
-
- ! (void) lseek (fd, 0L, 0);
- return fdopen (fd, mode);
- }
-
- --- 210,216 ----
- return fp;
- }
-
- ! (void) lseek (fd, (off_t)0, 0);
- return fdopen (fd, mode);
- }
-
- *** ../mh-6.8.1/support/bboards/mmdfI/bboards/bb_wtmail.c Fri Aug 20 13:08:38 1993
- --- support/bboards/mmdfI/bboards/bb_wtmail.c Wed Aug 25 15:57:16 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* bb_wtmail.c - write mail to a BBoard */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: bb_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
- + #endif
-
- #include "util.h"
- #include "mmdf.h"
- ***************
- *** 37,43 ****
- extern struct ll_struct *logptr;
-
-
- ! long lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- --- 40,46 ----
- extern struct ll_struct *logptr;
-
-
- ! off_t lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- ***************
- *** 185,191 ****
- return result;
- }
-
- ! pos = lseek (md, 0L, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- --- 188,194 ----
- return result;
- }
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- ***************
- *** 192,198 ****
- i = NOTOK;
- goto clean_up;
- }
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- count = strlen (bbrdheader);
- --- 195,201 ----
- i = NOTOK;
- goto clean_up;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- count = strlen (bbrdheader);
- ***************
- *** 233,239 ****
- clean_up: ;
- close (qd);
-
- ! stop = lseek (md, 0L, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- --- 236,242 ----
- clean_up: ;
- close (qd);
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- ***************
- *** 483,489 ****
- ml_txt (buffer);
-
- if (err_fd != NOTOK) {
- ! lseek (err_fd, 0L, 0);
- if ((qp = fdopen (err_fd, "r")) == NULL) {
- ml_txt ("unable to fdopen() for diagnostic copy\n");
- close (err_fd);
- --- 486,492 ----
- ml_txt (buffer);
-
- if (err_fd != NOTOK) {
- ! lseek (err_fd, (off_t)0, 0);
- if ((qp = fdopen (err_fd, "r")) == NULL) {
- ml_txt ("unable to fdopen() for diagnostic copy\n");
- close (err_fd);
- ***************
- *** 560,566 ****
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, 0L, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- --- 563,569 ----
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, (off_t)0, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- *** ../mh-6.8.1/support/bboards/mmdfII/bboards/bb_wtmail.c Fri Aug 20 13:08:35 1993
- --- support/bboards/mmdfII/bboards/bb_wtmail.c Wed Aug 25 15:57:13 1993
- ***************
- *** 3,8 ****
- --- 3,11 ----
- #else POP
- /* po_wtmail.c - write mail for a POP subscriber */
- #endif POP
- + #ifndef lint
- + static char Id[] = "@(#)$Id: bb_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
- + #endif
-
-
- #include "util.h"
- ***************
- *** 69,75 ****
-
- FILE *lk_fopen();
-
- ! long lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- --- 72,78 ----
-
- FILE *lk_fopen();
-
- ! off_t lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- ***************
- *** 238,244 ****
- }
- #endif not POP
-
- ! pos = lseek (md, 0L, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- --- 241,247 ----
- }
- #endif not POP
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- ***************
- *** 245,251 ****
- result = NOTOK;
- goto clean_up;
- }
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- #ifndef POP
- --- 248,254 ----
- result = NOTOK;
- goto clean_up;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- #ifndef POP
- ***************
- *** 287,293 ****
- qu_msgfile);
- clean_up: ;
-
- ! stop = lseek (md, 0L, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- --- 290,296 ----
- qu_msgfile);
- clean_up: ;
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- ***************
- *** 555,561 ****
- printx ("unable to post advisory.\n");
- ll_log (logptr, LLOGFAT, "unable to post failure notice");
- if (err_fd != NOTOK) {
- ! (void) lseek (err_fd, 0L, 0);
- if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- if (cp = index (buffer, '\n'))
- --- 558,564 ----
- printx ("unable to post advisory.\n");
- ll_log (logptr, LLOGFAT, "unable to post failure notice");
- if (err_fd != NOTOK) {
- ! (void) lseek (err_fd, (off_t)0, 0);
- if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- if (cp = index (buffer, '\n'))
- ***************
- *** 599,605 ****
-
- ml_txt (intro);
- if (err_fd != NOTOK) {
- ! lseek (err_fd, 0L, 0);
- while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- ml_txt (buffer);
- --- 602,608 ----
-
- ml_txt (intro);
- if (err_fd != NOTOK) {
- ! lseek (err_fd, (off_t)0, 0);
- while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- ml_txt (buffer);
- ***************
- *** 717,723 ****
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, 0L, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- --- 720,726 ----
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, (off_t)0, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- *** ../mh-6.8.1/support/bboards/mmdfII/bboards/dropsbr.c Fri Aug 20 13:08:34 1993
- --- support/bboards/mmdfII/bboards/dropsbr.c Wed Aug 25 15:57:12 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* dropsbr.c - write to a mailbox */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: dropsbr.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
- + #endif
-
- #include <stdio.h>
- #ifndef MMDFONLY
- ***************
- *** 25,31 ****
-
- extern int errno;
-
- ! long lseek ();
-
- /* */
-
- --- 28,34 ----
-
- extern int errno;
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 69,75 ****
- break;
-
- case UUCP:
- ! if (lseek (fd, 0L, 2) == (long) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- --- 72,78 ----
- break;
-
- case UUCP:
- ! if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- ***************
- *** 151,157 ****
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (long) (-count), 2) == (long) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = NULL;
- --- 154,160 ----
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = NULL;
- ***************
- *** 266,276 ****
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = lseek (md, 0L, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- --- 269,279 ----
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- ***************
- *** 289,295 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- --- 292,298 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- ***************
- *** 319,325 ****
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = lseek (md, 0L, 1);
- size = 0;
-
- switch (mbx_style) {
- --- 322,328 ----
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- switch (mbx_style) {
- ***************
- *** 328,334 ****
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 331,337 ----
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 356,362 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- --- 359,365 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- ***************
- *** 373,379 ****
- (void) close (j);
- return NOTOK;
- }
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 376,382 ----
- (void) close (j);
- return NOTOK;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 401,408 ****
- }
-
- (void) fclose (fp);
- ! (void) lseek (fd, 0L, 2);
- ! stop = lseek (md, 0L, 1);
- if (mapping)
- (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
- --- 404,411 ----
- }
-
- (void) fclose (fp);
- ! (void) lseek (fd, (off_t)0, 2);
- ! stop = (long) lseek (md, (off_t)0, 1);
- if (mapping)
- (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
- ***************
- *** 507,513 ****
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (long) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- --- 510,516 ----
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (off_t) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- ***************
- *** 579,585 ****
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 582,588 ----
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 600,606 ****
- dp -> d_size = size ? size : mbx_size (fd, start, stop);
- dp -> d_start = start;
- dp -> d_stop = stop;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 603,609 ----
- dp -> d_size = size ? size : mbx_size (fd, start, stop);
- dp -> d_start = start;
- dp -> d_stop = stop;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 612,620 ****
- dp = &d1;
- dp -> d_size = DRVRSN;
- dp -> d_start = last;
- ! dp -> d_stop = lseek (md, 0L, 1);
-
- ! (void) lseek (fd, 0L, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 615,623 ----
- dp = &d1;
- dp -> d_size = DRVRSN;
- dp -> d_start = last;
- ! dp -> d_stop = (long) lseek (md, (off_t)0, 1);
-
- ! (void) lseek (fd, (off_t)0, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 675,681 ****
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- --- 678,684 ----
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- ***************
- *** 683,689 ****
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (dl -> d_stop != dp -> d_stop
- && dl -> d_stop + count != dp -> d_stop)) {
- --- 686,692 ----
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (dl -> d_stop != dp -> d_stop
- && dl -> d_stop + count != dp -> d_stop)) {
- *** ../mh-6.8.1/support/bboards/mmdfII/bboards/lock.c Fri Aug 20 13:07:43 1993
- --- support/bboards/mmdfII/bboards/lock.c Wed Aug 25 15:56:16 1993
- ***************
- *** 1,6 ****
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- --- 1,6 ----
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- ***************
- *** 265,273 ****
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, 0L, SEEK_END);
- #else
- ! lseek (fd, 0L, L_XTND);
- #endif
- return fd;
- }
- --- 265,273 ----
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, (off_t)0, SEEK_END);
- #else
- ! lseek (fd, (off_t)0, L_XTND);
- #endif
- return fd;
- }
- ***************
- *** 322,328 ****
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
- --- 322,328 ----
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
- *** ../mh-6.8.1/support/pop/mmdfII/pop/dropsbr.c Fri Aug 20 13:08:25 1993
- --- support/pop/mmdfII/pop/dropsbr.c Wed Aug 25 15:56:59 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* dropsbr.c - write to a mailbox */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: dropsbr.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
- + #endif
-
- #include <stdio.h>
- #ifndef MMDFONLY
- ***************
- *** 25,31 ****
-
- extern int errno;
-
- ! long lseek ();
-
- /* */
-
- --- 28,34 ----
-
- extern int errno;
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 69,75 ****
- break;
-
- case UUCP:
- ! if (lseek (fd, 0L, 2) == (long) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- --- 72,78 ----
- break;
-
- case UUCP:
- ! if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- ***************
- *** 151,157 ****
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (long) (-count), 2) == (long) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = NULL;
- --- 154,160 ----
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = NULL;
- ***************
- *** 266,276 ****
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = lseek (md, 0L, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- --- 269,279 ----
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- ***************
- *** 289,295 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- --- 292,298 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- ***************
- *** 319,325 ****
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = lseek (md, 0L, 1);
- size = 0;
-
- switch (mbx_style) {
- --- 322,328 ----
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- switch (mbx_style) {
- ***************
- *** 328,334 ****
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 331,337 ----
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 356,362 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- --- 359,365 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- ***************
- *** 373,379 ****
- (void) close (j);
- return NOTOK;
- }
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 376,382 ----
- (void) close (j);
- return NOTOK;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 401,408 ****
- }
-
- (void) fclose (fp);
- ! (void) lseek (fd, 0L, 2);
- ! stop = lseek (md, 0L, 1);
- if (mapping)
- (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
- --- 404,411 ----
- }
-
- (void) fclose (fp);
- ! (void) lseek (fd, (off_t)0, 2);
- ! stop = (long) lseek (md, (off_t)0, 1);
- if (mapping)
- (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
- ***************
- *** 507,513 ****
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (long) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- --- 510,516 ----
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (off_t) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- ***************
- *** 579,585 ****
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 582,588 ----
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 600,606 ****
- dp -> d_size = size ? size : mbx_size (fd, start, stop);
- dp -> d_start = start;
- dp -> d_stop = stop;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 603,609 ----
- dp -> d_size = size ? size : mbx_size (fd, start, stop);
- dp -> d_start = start;
- dp -> d_stop = stop;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 612,620 ****
- dp = &d1;
- dp -> d_size = DRVRSN;
- dp -> d_start = last;
- ! dp -> d_stop = lseek (md, 0L, 1);
-
- ! (void) lseek (fd, 0L, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 615,623 ----
- dp = &d1;
- dp -> d_size = DRVRSN;
- dp -> d_start = last;
- ! dp -> d_stop = (long) lseek (md, (off_t)0, 1);
-
- ! (void) lseek (fd, (off_t)0, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 675,681 ****
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- --- 678,684 ----
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- ***************
- *** 683,689 ****
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (dl -> d_stop != dp -> d_stop
- && dl -> d_stop + count != dp -> d_stop)) {
- --- 686,692 ----
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (dl -> d_stop != dp -> d_stop
- && dl -> d_stop + count != dp -> d_stop)) {
- *** ../mh-6.8.1/support/pop/mmdfII/pop/lock.c Fri Aug 20 13:07:43 1993
- --- support/pop/mmdfII/pop/lock.c Wed Aug 25 15:56:16 1993
- ***************
- *** 1,6 ****
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- --- 1,6 ----
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- ***************
- *** 265,273 ****
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, 0L, SEEK_END);
- #else
- ! lseek (fd, 0L, L_XTND);
- #endif
- return fd;
- }
- --- 265,273 ----
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, (off_t)0, SEEK_END);
- #else
- ! lseek (fd, (off_t)0, L_XTND);
- #endif
- return fd;
- }
- ***************
- *** 322,328 ****
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
- --- 322,328 ----
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
- *** ../mh-6.8.1/support/pop/mmdfII/pop/po_wtmail.c Fri Aug 20 13:08:24 1993
- --- support/pop/mmdfII/pop/po_wtmail.c Wed Aug 25 15:56:57 1993
- ***************
- *** 3,8 ****
- --- 3,11 ----
- #else POP
- /* po_wtmail.c - write mail for a POP subscriber */
- #endif POP
- + #ifndef lint
- + static char Id[] = "@(#)$Id: po_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
- + #endif
-
-
- #include "util.h"
- ***************
- *** 69,75 ****
-
- FILE *lk_fopen();
-
- ! long lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- --- 72,78 ----
-
- FILE *lk_fopen();
-
- ! off_t lseek ();
- char *index (), *rindex (), *sprintf ();
- struct passwd *getpwnam ();
-
- ***************
- *** 238,244 ****
- }
- #endif not POP
-
- ! pos = lseek (md, 0L, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- --- 241,247 ----
- }
- #endif not POP
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim1);
- if (write (md, delim1, count) != count) {
- ll_log (logptr, LLOGTMP, "error writing delim1");
- ***************
- *** 245,251 ****
- result = NOTOK;
- goto clean_up;
- }
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- #ifndef POP
- --- 248,254 ----
- result = NOTOK;
- goto clean_up;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- #ifndef POP
- ***************
- *** 287,293 ****
- qu_msgfile);
- clean_up: ;
-
- ! stop = lseek (md, 0L, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- --- 290,296 ----
- qu_msgfile);
- clean_up: ;
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- count = strlen (delim2);
- if (write (md, delim2, count) != count)
- ll_log (logptr, LLOGTMP, "error writing delim2");
- ***************
- *** 555,561 ****
- printx ("unable to post advisory.\n");
- ll_log (logptr, LLOGFAT, "unable to post failure notice");
- if (err_fd != NOTOK) {
- ! (void) lseek (err_fd, 0L, 0);
- if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- if (cp = index (buffer, '\n'))
- --- 558,564 ----
- printx ("unable to post advisory.\n");
- ll_log (logptr, LLOGFAT, "unable to post failure notice");
- if (err_fd != NOTOK) {
- ! (void) lseek (err_fd, (off_t)0, 0);
- if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- if (cp = index (buffer, '\n'))
- ***************
- *** 599,605 ****
-
- ml_txt (intro);
- if (err_fd != NOTOK) {
- ! lseek (err_fd, 0L, 0);
- while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- ml_txt (buffer);
- --- 602,608 ----
-
- ml_txt (intro);
- if (err_fd != NOTOK) {
- ! lseek (err_fd, (off_t)0, 0);
- while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
- buffer[i] = NULL;
- ml_txt (buffer);
- ***************
- *** 717,723 ****
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, 0L, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- --- 720,726 ----
- if ((err_fd = open (tmpfil, 2)) == NOTOK)
- return result;
- unlink (tmpfil);
- ! lseek (err_fd, (off_t)0, 0);
- }
- i = strlen (buffer);
- write (err_fd, buffer, i);
- *** ../mh-6.8.1/support/pop/popd.c Fri Aug 20 13:08:19 1993
- --- support/pop/popd.c Wed Aug 25 15:56:52 1993
- ***************
- *** 1,6 ****
- /* popd.c - the POP server */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popd.c,v 1.15 1993/02/26 22:11:12 jromine Exp $";
- #endif /* lint */
-
- /* Author: Marshall T. Rose <MRose@UDel> (MTR)
- --- 1,6 ----
- /* popd.c - the POP server */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popd.c,v 1.16 1993/08/25 17:23:05 jromine Exp $";
- #endif /* lint */
-
- /* Author: Marshall T. Rose <MRose@UDel> (MTR)
- ***************
- *** 58,66 ****
- /* */
-
- extern int errno;
- extern int sys_nerr;
- extern char *sys_errlist[];
- - #ifndef BSD44 /* const */
- extern char *sys_siglist[];
- #endif
-
- --- 58,66 ----
- /* */
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- extern char *sys_siglist[];
- #endif
-
- *** ../mh-6.8.1/support/pop/popser.c Fri Aug 20 13:08:19 1993
- --- support/pop/popser.c Wed Aug 25 15:56:52 1993
- ***************
- *** 1,6 ****
- /* popser.c - the POP service */
- #ifndef lint
- ! static char ident[]="@(#)$Id: popser.c,v 1.30 1992/12/16 22:31:20 jromine Exp $";
- #endif
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* popser.c - the POP service */
- #ifndef lint
- ! static char ident[]="@(#)$Id: popser.c,v 1.31 1993/08/25 17:23:14 jromine Exp $";
- #endif
-
- #include "../h/mh.h"
- ***************
- *** 227,233 ****
- #endif
-
- void padvise (), padios ();
- - long lseek ();
- char *crypt ();
-
- #ifdef POPUUMBOX
- --- 227,232 ----
- *** ../mh-6.8.1/support/pop/syslog.c Fri Aug 20 13:08:20 1993
- --- support/pop/syslog.c Wed Aug 25 15:56:53 1993
- ***************
- *** 3,9 ****
- static char SccsId[] = "@(#)syslog.c 4.1 (Berkeley) 5/27/83";
- #endif
- #ifndef lint
- ! static char ident[] = "@(#)$Id: syslog.c,v 1.8 1992/12/15 00:20:22 jromine Exp jromine $";
- #endif /* lint */
-
- /*
- --- 3,9 ----
- static char SccsId[] = "@(#)syslog.c 4.1 (Berkeley) 5/27/83";
- #endif
- #ifndef lint
- ! static char ident[] = "@(#)$Id: syslog.c,v 1.9 1993/08/25 17:23:42 jromine Exp $";
- #endif /* lint */
-
- /*
- ***************
- *** 46,53 ****
- struct sockaddr_in SyslogAddr;
- static char *SyslogHost = LOG_HOST;
-
- ! extern int errno, sys_nerr;
- extern char *sys_errlist[];
-
- syslog(pri, fmt, p0, p1, p2, p3, p4)
- int pri;
- --- 46,56 ----
- struct sockaddr_in SyslogAddr;
- static char *SyslogHost = LOG_HOST;
-
- ! extern int errno;
- ! #ifndef BSD44
- ! extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- syslog(pri, fmt, p0, p1, p2, p3, p4)
- int pri;
- *** ../mh-6.8.1/uip/annosbr.c Fri Aug 20 13:08:11 1993
- --- uip/annosbr.c Wed Aug 25 15:56:44 1993
- ***************
- *** 1,6 ****
- /* annosbr.c - prepend annotation to messages */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: annosbr.c,v 2.5 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* annosbr.c - prepend annotation to messages */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: annosbr.c,v 2.6 1993/08/25 17:24:39 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 12,18 ****
-
-
- extern int errno;
- ! long lseek ();
- static annosbr();
-
- /* */
- --- 12,18 ----
-
-
- extern int errno;
- ! off_t lseek ();
- static annosbr();
-
- /* */
- ***************
- *** 97,103 ****
- if (inplace) {
- if ((fd = open (tmpfil, 0)) == NOTOK)
- adios (tmpfil, "unable to open for re-reading");
- ! (void) lseek (src, 0L, 0);
- cpydata (fd, src, tmpfil, file);
- (void) close (fd);
- (void) unlink (tmpfil);
- --- 97,103 ----
- if (inplace) {
- if ((fd = open (tmpfil, 0)) == NOTOK)
- adios (tmpfil, "unable to open for re-reading");
- ! (void) lseek (src, (off_t)0, 0);
- cpydata (fd, src, tmpfil, file);
- (void) close (fd);
- (void) unlink (tmpfil);
- *** ../mh-6.8.1/uip/distsbr.c Fri Aug 20 13:08:16 1993
- --- uip/distsbr.c Wed Aug 25 15:56:47 1993
- ***************
- *** 1,11 ****
- /* distsbr.c - routines to do additional "dist-style" processing */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: distsbr.c,v 1.4 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- #include <ctype.h>
- #include <stdio.h>
-
- static ready_msg();
-
- --- 1,12 ----
- /* distsbr.c - routines to do additional "dist-style" processing */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: distsbr.c,v 1.6 1993/08/25 22:26:24 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- #include <ctype.h>
- #include <stdio.h>
- + #include <sys/types.h> /* for off_t */
-
- static ready_msg();
-
- ***************
- *** 13,19 ****
- static int txtfd = NOTOK;
-
-
- ! long lseek ();
-
- /* */
-
- --- 14,20 ----
- static int txtfd = NOTOK;
-
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 45,51 ****
- (void) chmod (drft, m_gmprot ());
-
- ready_msg (msgnam);
- ! (void) lseek (hdrfd, 0L, 0); /* msgnam not accurate */
- cpydata (hdrfd, fileno (ofp), msgnam, drft);
-
- /* */
- --- 46,52 ----
- (void) chmod (drft, m_gmprot ());
-
- ready_msg (msgnam);
- ! (void) lseek (hdrfd, (off_t)0, 0); /* msgnam not accurate */
- cpydata (hdrfd, fileno (ofp), msgnam, drft);
-
- /* */
- ***************
- *** 120,126 ****
- free (resent);
-
- if (txtfd != NOTOK) {
- ! (void) lseek (txtfd, 0L, 0); /* msgnam not accurate */
- cpydata (txtfd, fileno (ofp), msgnam, drft);
- }
-
- --- 121,127 ----
- free (resent);
-
- if (txtfd != NOTOK) {
- ! (void) lseek (txtfd, (off_t)0, 0); /* msgnam not accurate */
- cpydata (txtfd, fileno (ofp), msgnam, drft);
- }
-
- *** ../mh-6.8.1/uip/dropsbr.c Fri Aug 20 13:07:52 1993
- --- uip/dropsbr.c Wed Aug 25 15:56:28 1993
- ***************
- *** 1,6 ****
- /* dropsbr.c - write to a mailbox */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: dropsbr.c,v 1.15 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include <stdio.h>
- --- 1,6 ----
- /* dropsbr.c - write to a mailbox */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: dropsbr.c,v 1.16 1993/08/25 17:25:08 jromine Exp $";
- #endif /* lint */
-
- #include <stdio.h>
- ***************
- *** 34,40 ****
-
- extern int errno;
-
- ! long lseek ();
-
- /* */
-
- --- 34,40 ----
-
- extern int errno;
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 78,84 ****
- break;
-
- case UUCP:
- ! if (lseek (fd, 0L, 2) == (long) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- --- 78,84 ----
- break;
-
- case UUCP:
- ! if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
- (void) close (fd);
- return NOTOK;
- }
- ***************
- *** 123,129 ****
- return NOTOK;
- }
- else {
- ! *clear = fstat (fd, &st) != NOTOK && st.st_size == 0L;
- break;
- }
-
- --- 123,129 ----
- return NOTOK;
- }
- else {
- ! *clear = fstat (fd, &st) != NOTOK && st.st_size == (off_t)0;
- break;
- }
-
- ***************
- *** 160,166 ****
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (long) (-count), 2) == (long) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = 0;
- --- 160,166 ----
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
- || read (fd, ldelim, count) != count)
- return NOTOK;
- ldelim[count] = 0;
- ***************
- *** 183,190 ****
- {
- register int len,
- size;
- ! long ld1,
- ! ld2;
- register char *bp;
- char buffer[BUFSIZ];
- register struct drop *cp,
- --- 183,190 ----
- {
- register int len,
- size;
- ! register long ld1,
- ! ld2;
- register char *bp;
- char buffer[BUFSIZ];
- register struct drop *cp,
- ***************
- *** 206,214 ****
- for (ep = (dp = pp) + len - 1; fgets (buffer, sizeof buffer, fp);) {
- size = 0;
- if (strcmp (buffer, mmdlm1) == 0)
- ! pos += ld1, dp -> d_start = pos;
- else {
- ! dp -> d_start = pos, pos += (long) strlen (buffer);
- for (bp = buffer; *bp; bp++, size++)
- if (*bp == '\n')
- size++;
- --- 206,214 ----
- for (ep = (dp = pp) + len - 1; fgets (buffer, sizeof buffer, fp);) {
- size = 0;
- if (strcmp (buffer, mmdlm1) == 0)
- ! pos += ld1, dp -> d_start = (long) pos;
- else {
- ! dp -> d_start = (long)pos , pos += (long) strlen (buffer);
- for (bp = buffer; *bp; bp++, size++)
- if (*bp == '\n')
- size++;
- ***************
- *** 224,233 ****
- size++;
- }
-
- ! if (dp -> d_start != pos) {
- dp -> d_id = 0;
- ! dp -> d_size = size;
- ! dp -> d_stop = pos;
- dp++;
- }
- pos += ld2;
- --- 224,233 ----
- size++;
- }
-
- ! if (dp -> d_start != (long) pos) {
- dp -> d_id = 0;
- ! dp -> d_size = (long) size;
- ! dp -> d_stop = (long) pos;
- dp++;
- }
- pos += ld2;
- ***************
- *** 270,285 ****
- register int i,
- j,
- size;
- ! register long start,
- off;
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = lseek (md, 0L, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- --- 270,285 ----
- register int i,
- j,
- size;
- ! long start,
- off;
- register char *cp;
- char buffer[BUFSIZ];
-
- ! off = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- (void) fseek (fp, pos, 0);
- ***************
- *** 298,304 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- --- 298,304 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- ***************
- *** 321,327 ****
- register int i,
- j,
- size;
- ! register long start,
- stop,
- pos;
- register char *cp;
- --- 321,327 ----
- register int i,
- j,
- size;
- ! long start,
- stop,
- pos;
- register char *cp;
- ***************
- *** 328,334 ****
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = lseek (md, 0L, 1);
- size = 0;
-
- switch (mbx_style) {
- --- 328,334 ----
- char buffer[BUFSIZ];
- register FILE *fp;
-
- ! pos = (long) lseek (md, (off_t)0, 1);
- size = 0;
-
- switch (mbx_style) {
- ***************
- *** 337,343 ****
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 337,343 ----
- j = strlen (mmdlm1);
- if (write (md, mmdlm1, j) != j)
- return NOTOK;
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 365,376 ****
- size++;
- }
-
- ! stop = lseek (md, 0L, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- if (mapping)
- ! (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
-
- return (i != NOTOK ? OK : NOTOK);
- --- 365,376 ----
- size++;
- }
-
- ! stop = (long) lseek (md, (off_t)0, 1);
- j = strlen (mmdlm2);
- if (write (md, mmdlm2, j) != j)
- return NOTOK;
- if (mapping)
- ! (void) map_write (mailbox, md, 0, (long)0, start, stop, pos, size,
- noisy);
-
- return (i != NOTOK ? OK : NOTOK);
- ***************
- *** 382,388 ****
- (void) close (j);
- return NOTOK;
- }
- ! start = lseek (md, 0L, 1);
-
- if (text) {
- i = strlen (text);
- --- 382,388 ----
- (void) close (j);
- return NOTOK;
- }
- ! start = (long) lseek (md, (off_t)0, 1);
-
- if (text) {
- i = strlen (text);
- ***************
- *** 415,424 ****
- if (mapping) size += 2;
-
- (void) fclose (fp);
- ! (void) lseek (fd, 0L, 2);
- ! stop = lseek (md, 0L, 1);
- if (mapping)
- ! (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
- noisy);
-
- return OK;
- --- 415,424 ----
- if (mapping) size += 2;
-
- (void) fclose (fp);
- ! (void) (long) lseek (fd, (off_t)0, 2);
- ! stop = (long) lseek (md, (off_t)0, 1);
- if (mapping)
- ! (void) map_write (mailbox, md, 0, (long)0, start, stop, pos, size,
- noisy);
-
- return OK;
- ***************
- *** 427,433 ****
-
- /* */
-
- ! int mbx_size (md, start, stop)
- int md;
- long start,
- stop;
- --- 427,433 ----
-
- /* */
-
- ! int mbx_size (md, start, stop)
- int md;
- long start,
- stop;
- ***************
- *** 521,527 ****
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (long) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- --- 521,527 ----
-
- bcopy ((char *) mp, (char *) dp, sizeof *dp);
-
- ! (void) lseek (md, (off_t) sizeof *mp, 0);
- if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
- i = 0;
- free ((char *) dp);
- ***************
- *** 553,559 ****
- id,
- size,
- noisy;
- ! long last,
- start,
- stop,
- pos;
- --- 553,559 ----
- id,
- size,
- noisy;
- ! long last,
- start,
- stop,
- pos;
- ***************
- *** 590,596 ****
- return NOTOK;
- }
-
- ! switch (i = mbx_read (fp, 0L, &rp, noisy)) {
- case NOTOK:
- (void) fclose (fp);
- (void) mbx_close (file, fd);
- --- 590,596 ----
- return NOTOK;
- }
-
- ! switch (i = mbx_read (fp, (off_t)0, &rp, noisy)) {
- case NOTOK:
- (void) fclose (fp);
- (void) mbx_close (file, fd);
- ***************
- *** 604,610 ****
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 604,610 ----
- for (dp = rp; i-- >0; dp++) {
- if (dp -> d_start == start)
- dp -> d_id = id;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 622,631 ****
- last = d1.d_start;
- dp = &d2;
- dp -> d_id = id;
- ! dp -> d_size = size ? size : mbx_size (fd, start, stop);
- ! dp -> d_start = start;
- ! dp -> d_stop = stop;
- ! (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 622,631 ----
- last = d1.d_start;
- dp = &d2;
- dp -> d_id = id;
- ! dp -> d_size = (long) (size ? size : mbx_size (fd, start, stop));
- ! dp -> d_start = (long) start;
- ! dp -> d_stop = (long) stop;
- ! (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 636,645 ****
-
- dp = &d1;
- dp -> d_size = DRVRSN;
- ! dp -> d_start = last;
- ! dp -> d_stop = lseek (md, 0L, 1);
-
- ! (void) lseek (fd, 0L, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- --- 636,645 ----
-
- dp = &d1;
- dp -> d_size = DRVRSN;
- ! dp -> d_start = (long) last;
- ! dp -> d_stop = (long) lseek (md, (off_t)0, 1);
-
- ! (void) lseek (fd, (off_t)0, 0);
- if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
- if (noisy)
- admonish (file, "write error");
- ***************
- *** 701,715 ****
- return NOTOK;
- }
-
- ! if (dp -> d_stop != pos) {
- ! if (noisy && pos != 0L)
- admonish (NULLCP,
- "%s: pointer mismatch or incomplete index (%ld!=%ld)",
- ! file, dp -> d_stop, pos);
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- --- 701,715 ----
- return NOTOK;
- }
-
- ! if (dp -> d_stop != (long) pos) {
- ! if (noisy && pos != (long)0)
- admonish (NULLCP,
- "%s: pointer mismatch or incomplete index (%ld!=%ld)",
- ! file, dp -> d_stop, (long) pos);
- return NOTOK;
- }
-
- ! if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
- if (noisy)
- admonish (NULLCP, "%s: corrupt index(1)", file);
- return NOTOK;
- ***************
- *** 717,723 ****
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (ntohl(dl -> d_stop) != dp -> d_stop
- && ntohl(dl -> d_stop) + count != dp -> d_stop)) {
- --- 717,723 ----
-
- dl = &d;
- count = (long) strlen (mmdlm2);
- ! (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
- if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
- || (ntohl(dl -> d_stop) != dp -> d_stop
- && ntohl(dl -> d_stop) + count != dp -> d_stop)) {
- *** ../mh-6.8.1/uip/forw.c Fri Aug 20 13:08:05 1993
- --- uip/forw.c Wed Aug 25 15:56:41 1993
- ***************
- *** 1,6 ****
- /* forw.c - forward messages */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: forw.c,v 1.13 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* forw.c - forward messages */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: forw.c,v 1.14 1993/08/25 17:25:18 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 133,139 ****
- static struct msgs *mp = NULL; /* used a lot */
-
-
- ! long lseek (), time ();
-
- /* */
-
- --- 133,140 ----
- static struct msgs *mp = NULL; /* used a lot */
-
-
- ! long time ();
- ! off_t lseek();
-
- /* */
-
- ***************
- *** 351,357 ****
- : m_draft (dfolder, NULLCP, NOUSE, &isdf));
- if (!buildsw && stat (drft, &st) != NOTOK) {
- #endif /* MHE */
- ! printf ("Draft \"%s\" exists (%ld bytes).", drft, st.st_size);
- for (i = LISTDSW; i != YESW;) {
- if (!(argp = getans ("\nDisposition? ", isdf ? aqrnl : aqrl)))
- done (1);
- --- 352,358 ----
- : m_draft (dfolder, NULLCP, NOUSE, &isdf));
- if (!buildsw && stat (drft, &st) != NOTOK) {
- #endif /* MHE */
- ! printf ("Draft \"%s\" exists (%ld bytes).", drft, (long) st.st_size);
- for (i = LISTDSW; i != YESW;) {
- if (!(argp = getans ("\nDisposition? ", isdf ? aqrnl : aqrl)))
- done (1);
- ***************
- *** 680,685 ****
- if (fclose (tmp))
- adios (tmpfil, "error writing");
-
- ! (void) lseek (in, 0L, 0);
- return in;
- }
- --- 681,686 ----
- if (fclose (tmp))
- adios (tmpfil, "error writing");
-
- ! (void) lseek (in, (off_t)0, 0);
- return in;
- }
- *** ../mh-6.8.1/uip/ftpsbr.c Fri Aug 20 13:07:53 1993
- --- uip/ftpsbr.c Wed Aug 25 15:56:28 1993
- ***************
- *** 1,7 ****
- /* ftpsbr.c - simple FTP client library (why doesn't BSD have one?!?) */
-
- #ifndef lint
- ! static char ident[] = "@(#)$Id: ftpsbr.c,v 1.12 1993/08/20 15:49:47 jromine Exp $";
- #endif
-
- #include "../h/mh.h"
- --- 1,7 ----
- /* ftpsbr.c - simple FTP client library (why doesn't BSD have one?!?) */
-
- #ifndef lint
- ! static char ident[] = "@(#)$Id: ftpsbr.c,v 1.13 1993/08/25 17:25:27 jromine Exp $";
- #endif
-
- #include "../h/mh.h"
- ***************
- *** 67,74 ****
- --- 67,76 ----
- /* */
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
-
- #define start_tcp_client(sock,priv) \
- *** ../mh-6.8.1/uip/mhn.c Fri Aug 20 13:07:56 1993
- --- uip/mhn.c Wed Aug 25 15:56:33 1993
- ***************
- *** 1,6 ****
- /* mhn.c - multi-media MH */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mhn.c,v 2.22 1993/08/20 15:52:01 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* mhn.c - multi-media MH */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mhn.c,v 2.23 1993/08/25 17:26:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 183,190 ****
- --- 183,192 ----
-
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- off_t lseek ();
- time_t time ();
- ***************
- *** 3888,3897 ****
- }
-
- if (ce -> ce_fp && fstat (fileno (ce -> ce_fp), &st) != NOTOK)
- ! return st.st_size;
-
- if (ce -> ce_file)
- ! return stat (ce -> ce_file, &st) != NOTOK ? st.st_size : 0L;
-
- if (ct -> c_encoding == CE_EXTERNAL)
- goto estimate;
- --- 3890,3899 ----
- }
-
- if (ce -> ce_fp && fstat (fileno (ce -> ce_fp), &st) != NOTOK)
- ! return (long) st.st_size;
-
- if (ce -> ce_file)
- ! return stat (ce -> ce_file, &st) != NOTOK ? (long) st.st_size : 0L;
-
- if (ct -> c_encoding == CE_EXTERNAL)
- goto estimate;
- ***************
- *** 3900,3906 ****
- if ((fd = (*ct -> c_ceopenfnx) (ct, &file)) == NOTOK)
- goto estimate;
-
- ! size = fstat (fd, &st) != NOTOK ? st.st_size : 0L;
-
- (*ct -> c_ceclosefnx) (ct);
-
- --- 3902,3908 ----
- if ((fd = (*ct -> c_ceopenfnx) (ct, &file)) == NOTOK)
- goto estimate;
-
- ! size = fstat (fd, &st) != NOTOK ? (long) st.st_size : 0L;
-
- (*ct -> c_ceclosefnx) (ct);
-
- ***************
- *** 4033,4039 ****
- if (digested = ct -> c_digested)
- MD5Init (&mdContext);
-
- ! (void) lseek (fd = fileno (ct -> c_fp), ct -> c_begin, 0);
- bitno = 18, bits = 0L, skip = 0;
- while (len > 0)
- switch (cc = read (fd, buffer, sizeof buffer - 1)) {
- --- 4035,4041 ----
- if (digested = ct -> c_digested)
- MD5Init (&mdContext);
-
- ! (void) lseek (fd = fileno (ct -> c_fp), (off_t)ct -> c_begin, 0);
- bitno = 18, bits = 0L, skip = 0;
- while (len > 0)
- switch (cc = read (fd, buffer, sizeof buffer - 1)) {
- ***************
- *** 4061,4067 ****
- if (debugsw)
- fprintf (stderr,
- "*cp=0x%x pos=%ld skip=%d\n", *cp,
- ! lseek (fd, 0L, 1) - (ep - cp),
- skip);
- content_error (NULLCP, ct,
- "invalid BASE64 encoding -- continuing");
- --- 4063,4069 ----
- if (debugsw)
- fprintf (stderr,
- "*cp=0x%x pos=%ld skip=%d\n", *cp,
- ! (long) lseek (fd, (off_t)0, 1) - (ep - cp),
- skip);
- content_error (NULLCP, ct,
- "invalid BASE64 encoding -- continuing");
- ***************
- *** 4418,4424 ****
- return NOTOK;
- }
-
- ! (void) lseek (fd = fileno (ct -> c_fp), ct -> c_begin, 0);
- while (len > 0)
- switch (cc = read (fd, buffer, sizeof buffer - 1)) {
- case NOTOK:
- --- 4420,4426 ----
- return NOTOK;
- }
-
- ! (void) lseek (fd = fileno (ct -> c_fp), (off_t) ct -> c_begin, 0);
- while (len > 0)
- switch (cc = read (fd, buffer, sizeof buffer - 1)) {
- case NOTOK:
- ***************
- *** 5361,5367 ****
- if (access (ct -> c_file = ci -> ci_magic, 04) == NOTOK)
- adios ("reading", "unable to access %s for", ct -> c_file);
- if (listsw && stat (ct -> c_file, &st) != NOTOK)
- ! ct -> c_end = st.st_size;
- ci -> ci_magic = NULL;
- }
- return OK;
- --- 5363,5369 ----
- if (access (ct -> c_file = ci -> ci_magic, 04) == NOTOK)
- adios ("reading", "unable to access %s for", ct -> c_file);
- if (listsw && stat (ct -> c_file, &st) != NOTOK)
- ! ct -> c_end = (long) st.st_size;
- ci -> ci_magic = NULL;
- }
- return OK;
- ***************
- *** 5445,5451 ****
- (void) sprintf (buffer, "%s/%d", mp -> foldpath, msgnum);
- p -> c_file = add (buffer, NULLCP);
- if (listsw && stat (p -> c_file, &st) != NOTOK)
- ! p -> c_end = st.st_size;
-
- if ((part = (struct part *) calloc (1, sizeof *part)) == NULL)
- adios (NULLCP, "out of memory");
- --- 5447,5453 ----
- (void) sprintf (buffer, "%s/%d", mp -> foldpath, msgnum);
- p -> c_file = add (buffer, NULLCP);
- if (listsw && stat (p -> c_file, &st) != NOTOK)
- ! p -> c_end = (long) st.st_size;
-
- if ((part = (struct part *) calloc (1, sizeof *part)) == NULL)
- adios (NULLCP, "out of memory");
- ***************
- *** 5718,5724 ****
- struct stat st;
-
- if (stat (ct -> c_file, &st) != NOTOK)
- ! ct -> c_end = st.st_size;
- }
- if (ct -> c_type != CT_TEXT
- && !(ct -> c_type == CT_APPLICATION
- --- 5720,5726 ----
- struct stat st;
-
- if (stat (ct -> c_file, &st) != NOTOK)
- ! ct -> c_end = (long) st.st_size;
- }
- if (ct -> c_type != CT_TEXT
- && !(ct -> c_type == CT_APPLICATION
- ***************
- *** 6393,6399 ****
-
- if (fstat (fileno (fp), &st) == NOTOK)
- adios ("failed", "fstat of %s", tmpfil);
- ! nlines += ((st.st_size - pos) + CPERLIN) / (CPERLIN + 1);
- nparts = (nlines + (LPERMSG - 1)) / LPERMSG;
-
- if (nparts <= 1)
- --- 6395,6401 ----
-
- if (fstat (fileno (fp), &st) == NOTOK)
- adios ("failed", "fstat of %s", tmpfil);
- ! nlines += (((long) st.st_size - pos) + CPERLIN) / (CPERLIN + 1);
- nparts = (nlines + (LPERMSG - 1)) / LPERMSG;
-
- if (nparts <= 1)
- *** ../mh-6.8.1/uip/msh.c Fri Aug 20 13:07:58 1993
- --- uip/msh.c Wed Aug 25 15:56:34 1993
- ***************
- *** 1,6 ****
- /* msh.c - The MH shell (sigh) */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: msh.c,v 2.13 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- /* TODO:
- --- 1,6 ----
- /* msh.c - The MH shell (sigh) */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: msh.c,v 2.13 1992/12/15 00:20:22 jromine Exp jromine $";
- #endif /* lint */
-
- /* TODO:
- *** ../mh-6.8.1/uip/mshcmds.c Fri Aug 20 13:08:01 1993
- --- uip/mshcmds.c Wed Aug 25 15:56:37 1993
- ***************
- *** 1,6 ****
- /* mshcmds.c - command handlers in msh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mshcmds.c,v 1.25 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* mshcmds.c - command handlers in msh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: mshcmds.c,v 1.25 1992/12/15 00:20:22 jromine Exp jromine $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 20,28 ****
- #include <errno.h>
- #include <setjmp.h>
- #include <signal.h>
- - #include "../h/mshsbr.h"
- #include <sys/types.h>
- #include <sys/stat.h>
-
- /* */
-
- --- 20,28 ----
- #include <errno.h>
- #include <setjmp.h>
- #include <signal.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- + #include "../h/mshsbr.h"
-
- /* */
-
- *** ../mh-6.8.1/uip/popsbr.c Fri Aug 20 13:07:57 1993
- --- uip/popsbr.c Wed Aug 25 15:56:34 1993
- ***************
- *** 1,6 ****
- /* popsbr.c - POP client subroutines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popsbr.c,v 2.4 1992/11/24 18:32:32 jromine Exp $";
- #endif lint
-
- #if defined(NNTP) && !defined(PSHSBR)
- --- 1,6 ----
- /* popsbr.c - POP client subroutines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popsbr.c,v 2.5 1993/08/25 17:26:40 jromine Exp $";
- #endif lint
-
- #if defined(NNTP) && !defined(PSHSBR)
- ***************
- *** 28,35 ****
- --- 28,37 ----
- #define TRMLEN (sizeof TRM - 1)
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- static int poprint = 0;
- static int pophack = 0;
- *** ../mh-6.8.1/uip/post.c Fri Aug 20 13:07:52 1993
- --- uip/post.c Wed Aug 25 15:56:27 1993
- ***************
- *** 1,6 ****
- /* post.c - enter messages into the transport system */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: post.c,v 2.22 1993/08/20 15:53:20 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* post.c - enter messages into the transport system */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: post.c,v 2.23 1993/08/25 17:26:51 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 332,338 ****
-
- static int queued = 0;
-
- ! long lseek (), time ();
-
- static putfmt(), start_headers(), finish_headers(), putgrp(), pl();
- static anno(), make_bcc_file(), verify_all_addresses();
- --- 332,339 ----
-
- static int queued = 0;
-
- ! off_t lseek ();
- ! long time ();
-
- static putfmt(), start_headers(), finish_headers(), putgrp(), pl();
- static anno(), make_bcc_file(), verify_all_addresses();
- ***************
- *** 1846,1852 ****
- struct rp_bufstruct reply;
- #endif /* MMDFMTS */
-
- ! (void) lseek (fd, 0L, 0);
- while ((state = read (fd, buf, sizeof buf)) > 0)
- #ifdef MMDFMTS
- if (rp_isbad (mm_wtxt (buf, state)))
- --- 1847,1853 ----
- struct rp_bufstruct reply;
- #endif /* MMDFMTS */
-
- ! (void) lseek (fd, (off_t)0, 0);
- while ((state = read (fd, buf, sizeof buf)) > 0)
- #ifdef MMDFMTS
- if (rp_isbad (mm_wtxt (buf, state)))
- ***************
- *** 2450,2456 ****
- (void) fflush (stdout);
-
- case NOTOK:
- ! (void) lseek (fd, 0L, 0);
- if ((md = mbx_open (mailbox, hp -> h_uid, hp -> h_gid, m_gmprot ()))
- == NOTOK) {
- if (!talk)
- --- 2451,2457 ----
- (void) fflush (stdout);
-
- case NOTOK:
- ! (void) lseek (fd, (off_t)0, 0);
- if ((md = mbx_open (mailbox, hp -> h_uid, hp -> h_gid, m_gmprot ()))
- == NOTOK) {
- if (!talk)
- ***************
- *** 2597,2603 ****
- if ((fd = open (tmpfil, 2)) == NOTOK)
- return NOTOK;
-
- ! (void) lseek (qd, 0L, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i) {
- (void) close (fd);
- --- 2598,2604 ----
- if ((fd = open (tmpfil, 2)) == NOTOK)
- return NOTOK;
-
- ! (void) lseek (qd, (off_t)0, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i) {
- (void) close (fd);
- ***************
- *** 2608,2614 ****
- return NOTOK;
- }
-
- ! (void) lseek (fd, 0L, 0);
-
- return fd;
- }
- --- 2609,2615 ----
- return NOTOK;
- }
-
- ! (void) lseek (fd, (off_t)0, 0);
-
- return fd;
- }
- ***************
- *** 2657,2663 ****
- goto oops;
- }
-
- ! (void) lseek (fd, 0L, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (fwrite (buffer, sizeof *buffer, i, fp) != i) {
- oops: ;
- --- 2658,2664 ----
- goto oops;
- }
-
- ! (void) lseek (fd, (off_t)0, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (fwrite (buffer, sizeof *buffer, i, fp) != i) {
- oops: ;
- ***************
- *** 2698,2704 ****
- fd;
- char tmpfil[BUFSIZ];
-
- ! (void) lseek (td, 0L, 0);
- if ((qd = dup (td)) == NOTOK)
- adios ("fd", "unable to dup");
-
- --- 2699,2705 ----
- fd;
- char tmpfil[BUFSIZ];
-
- ! (void) lseek (td, (off_t)0, 0);
- if ((qd = dup (td)) == NOTOK)
- adios ("fd", "unable to dup");
-
- ***************
- *** 2755,2761 ****
- }
- nm_waend ();
-
- ! (void) lseek (fd, 0L, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (nm_wtxt (buffer, i) == NOTOK) {
- fprintf (stderr,
- --- 2756,2762 ----
- }
- nm_waend ();
-
- ! (void) lseek (fd, (off_t)0, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (nm_wtxt (buffer, i) == NOTOK) {
- fprintf (stderr,
- *** ../mh-6.8.1/uip/pshsbr.c Fri Aug 20 13:07:57 1993
- --- uip/pshsbr.c Wed Aug 25 15:56:34 1993
- ***************
- *** 1,6 ****
- /* popsbr.c - POP client subroutines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popsbr.c,v 2.4 1992/11/24 18:32:32 jromine Exp $";
- #endif lint
-
- #if defined(NNTP) && !defined(PSHSBR)
- --- 1,6 ----
- /* popsbr.c - POP client subroutines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: popsbr.c,v 2.5 1993/08/25 17:26:40 jromine Exp $";
- #endif lint
-
- #if defined(NNTP) && !defined(PSHSBR)
- ***************
- *** 28,35 ****
- --- 28,37 ----
- #define TRMLEN (sizeof TRM - 1)
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- static int poprint = 0;
- static int pophack = 0;
- *** ../mh-6.8.1/uip/rcvpack.c Fri Aug 20 13:08:12 1993
- --- uip/rcvpack.c Wed Aug 25 15:56:45 1993
- ***************
- *** 1,6 ****
- /* rcvpack.c - a rcvmail program to keep a copy */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rcvpack.c,v 1.4 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* rcvpack.c - a rcvmail program to keep a copy */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rcvpack.c,v 1.5 1993/08/25 17:27:19 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 20,29 ****
-
- NULL, 0
- };
- -
- - /* */
- -
- - long lseek ();
-
- /* */
-
- --- 20,25 ----
- *** ../mh-6.8.1/uip/rcvtty.c Fri Aug 20 13:07:51 1993
- --- uip/rcvtty.c Wed Aug 25 15:56:26 1993
- ***************
- *** 1,6 ****
- /* rcvtty.c - a rcvmail program (a lot like rcvalert) handling IPC ttys */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rcvtty.c,v 1.11 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- #ifndef BSD42
- --- 1,6 ----
- /* rcvtty.c - a rcvmail program (a lot like rcvalert) handling IPC ttys */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rcvtty.c,v 1.12 1993/08/25 17:27:27 jromine Exp $";
- #endif /* lint */
-
- #ifndef BSD42
- ***************
- *** 53,59 ****
-
- static jmp_buf myctx;
-
- ! long lseek ();
- char *getusr ();
-
- static int message_fd(), header_fd();
- --- 53,59 ----
-
- static jmp_buf myctx;
-
- ! off_t lseek ();
- char *getusr ();
-
- static int message_fd(), header_fd();
- ***************
- *** 234,240 ****
- (void) pidwait (child_id, OK);
-
- (void) alarm (0);
- ! if (fstat (fd, &st) != NOTOK && st.st_size > 0L)
- return fd;
- (void) close (fd);
- return header_fd ();
- --- 234,240 ----
- (void) pidwait (child_id, OK);
-
- (void) alarm (0);
- ! if (fstat (fd, &st) != NOTOK && st.st_size > (off_t)0)
- return fd;
- (void) close (fd);
- return header_fd ();
- ***************
- *** 316,322 ****
- return;
- }
-
- ! (void) lseek (md, 0L, 0);
-
- while ((i = read (md, buffer, sizeof buffer)) > 0)
- if (write (td, buffer, i) != i)
- --- 316,322 ----
- return;
- }
-
- ! (void) lseek (md, (off_t)0, 0);
-
- while ((i = read (md, buffer, sizeof buffer)) > 0)
- if (write (td, buffer, i) != i)
- ***************
- *** 340,346 ****
- return;
- (void) signal (SIGPIPE, SIG_IGN);
-
- ! (void) lseek (md, 0L, 0);
- while ((i = read (md, buffer, sizeof buffer)) > 0)
- if (write (td, buffer, i) != i)
- break;
- --- 340,346 ----
- return;
- (void) signal (SIGPIPE, SIG_IGN);
-
- ! (void) lseek (md, (off_t), 0);
- while ((i = read (md, buffer, sizeof buffer)) > 0)
- if (write (td, buffer, i) != i)
- break;
- *** ../mh-6.8.1/uip/replsbr.c Fri Aug 20 13:07:50 1993
- --- uip/replsbr.c Wed Aug 25 15:56:26 1993
- ***************
- *** 1,6 ****
- /* replsbr.c - routines to help repl along... */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: replsbr.c,v 1.14 1993/02/26 21:59:28 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* replsbr.c - routines to help repl along... */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: replsbr.c,v 1.15 1993/08/25 17:27:35 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 424,430 ****
-
- #ifdef _FSTDIO
- /* <sigh> the code assumed that rewind does this. */
- ! lseek (fileno(stdin), 0, SEEK_SET);
- #endif
- execlp (mhlproc, mhl, "-form", filter, "-noclear", NULLCP);
- fprintf (stderr, "unable to exec ");
- --- 424,430 ----
-
- #ifdef _FSTDIO
- /* <sigh> the code assumed that rewind does this. */
- ! (void) lseek (fileno(stdin), (off_t)0, SEEK_SET);
- #endif
- execlp (mhlproc, mhl, "-form", filter, "-noclear", NULLCP);
- fprintf (stderr, "unable to exec ");
- *** ../mh-6.8.1/uip/rmail.c Fri Aug 20 13:08:12 1993
- --- uip/rmail.c Wed Aug 25 15:56:45 1993
- ***************
- *** 1,6 ****
- /* rmail.c - replacement for /bin/rmail */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rmail.c,v 1.2 1992/11/04 00:59:59 jromine Exp $";
- #endif lint
-
- /* This program has a long, long history. It started as UCB's rmail, and
- --- 1,6 ----
- /* rmail.c - replacement for /bin/rmail */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: rmail.c,v 1.3 1993/08/25 17:27:43 jromine Exp $";
- #endif lint
-
- /* This program has a long, long history. It started as UCB's rmail, and
- ***************
- *** 71,77 ****
- int pipeser ();
-
-
- ! long lseek ();
-
- /* */
-
- --- 71,77 ----
- int pipeser ();
-
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 594,600 ****
- return NOTOK;
- }
- (void) fclose (out);
- ! (void) lseek (td, 0L, 0);
-
- (void) strcpy (mmdfil, "/tmp/mmdfXXXXXX");
- (void) unlink (mktemp (mmdfil));
- --- 594,600 ----
- return NOTOK;
- }
- (void) fclose (out);
- ! (void) lseek (td, (off_t)0, 0);
-
- (void) strcpy (mmdfil, "/tmp/mmdfXXXXXX");
- (void) unlink (mktemp (mmdfil));
- *** ../mh-6.8.1/uip/sbboards.c Fri Aug 20 13:08:04 1993
- --- uip/sbboards.c Wed Aug 25 15:56:40 1993
- ***************
- *** 4,10 ****
- /* spop.c - MH style mailer to write to a POP subscriber */
- #endif SPOP
- #ifndef lint
- ! static char ident[] = "@(#)$Id: sbboards.c,v 1.8 1993/08/20 15:53:49 jromine Exp $";
- #endif lint
-
- #ifndef SPOP
- --- 4,10 ----
- /* spop.c - MH style mailer to write to a POP subscriber */
- #endif SPOP
- #ifndef lint
- ! static char ident[] = "@(#)$Id: sbboards.c,v 1.9 1993/08/25 17:27:54 jromine Exp $";
- #endif lint
-
- #ifndef SPOP
- ***************
- *** 101,107 ****
- static struct bboard *bb[NBB];
-
-
- ! long lseek ();
-
- #ifndef __STDC__
- #ifdef SYS5
- --- 101,107 ----
- static struct bboard *bb[NBB];
-
-
- ! off_t lseek ();
-
- #ifndef __STDC__
- #ifdef SYS5
- ***************
- *** 170,176 ****
-
- for (i = 0; bp = bb[i]; i++)
- if (bp -> bb_file && *bp -> bb_file) {
- ! (void) lseek (fd, 0L, 0);
- #ifndef SPOP
- if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
- #else SPOP
- --- 170,176 ----
-
- for (i = 0; bp = bb[i]; i++)
- if (bp -> bb_file && *bp -> bb_file) {
- ! (void) lseek (fd, (off_t)0, 0);
- #ifndef SPOP
- if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
- #else SPOP
- ***************
- *** 311,317 ****
- if (rp_isbad (retval = sm_waend ()))
- return lose ("problem ending addresses; %s", rp_string (retval));
-
- ! (void) lseek (fd, 0L, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (rp_isbad (retval = sm_wtxt (buffer, i)))
- return lose ("problem writing text; %s", rp_string (retval));
- --- 311,317 ----
- if (rp_isbad (retval = sm_waend ()))
- return lose ("problem ending addresses; %s", rp_string (retval));
-
- ! (void) lseek (fd, (off_t)0, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (rp_isbad (retval = sm_wtxt (buffer, i)))
- return lose ("problem writing text; %s", rp_string (retval));
- ***************
- *** 420,426 ****
- goto sm_err;
- }
-
- ! (void) lseek (bb_fderr, 0L, 0);
- while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
- if (rp_isbad (sm_wtxt (buffer, i)))
- goto sm_err;
- --- 420,426 ----
- goto sm_err;
- }
-
- ! (void) lseek (bb_fderr, (off_t)0, 0);
- while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
- if (rp_isbad (sm_wtxt (buffer, i)))
- goto sm_err;
- ***************
- *** 473,479 ****
- *dp;
- char outbuf[BUFSIZ];
-
- ! (void) lseek (fd, 0L, 0);
-
- dp = (bp = outbuf) + sizeof outbuf;
- for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
- --- 473,479 ----
- *dp;
- char outbuf[BUFSIZ];
-
- ! (void) lseek (fd, (off_t)0, 0);
-
- dp = (bp = outbuf) + sizeof outbuf;
- for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
- ***************
- *** 607,613 ****
- if ((fd = open (tmpfil, 2)) == NOTOK)
- adios (EX_NOINPUT, tmpfil, "unable to re-open");
-
- ! (void) lseek (qd, 0L, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i)
- adios (EX_IOERR, tmpfil, "error writing");
- --- 607,613 ----
- if ((fd = open (tmpfil, 2)) == NOTOK)
- adios (EX_NOINPUT, tmpfil, "unable to re-open");
-
- ! (void) lseek (qd, (off_t)0, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i)
- adios (EX_IOERR, tmpfil, "error writing");
- ***************
- *** 614,620 ****
- if (i == NOTOK)
- adios (EX_IOERR, "input", "error reading");
-
- ! (void) lseek (fd, 0L, 0);
-
- return fd;
- }
- --- 614,620 ----
- if (i == NOTOK)
- adios (EX_IOERR, "input", "error reading");
-
- ! (void) lseek (fd, (off_t)0, 0);
-
- return fd;
- }
- *** ../mh-6.8.1/uip/sendsbr.c Fri Aug 20 13:07:59 1993
- --- uip/sendsbr.c Wed Aug 25 15:56:36 1993
- ***************
- *** 1,6 ****
- /* sendsbr.c - routines to help WhatNow/Send along */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: sendsbr.c,v 2.13 1993/08/20 15:54:44 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- --- 1,6 ----
- /* sendsbr.c - routines to help WhatNow/Send along */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: sendsbr.c,v 2.14 1993/08/25 17:28:05 jromine Exp $";
- #endif /* lint */
-
- #include "../h/mh.h"
- ***************
- *** 38,44 ****
-
-
- char *getusr ();
- ! long lseek (), time ();
-
- /* */
-
- --- 38,45 ----
-
-
- char *getusr ();
- ! off_t lseek ();
- ! long time ();
-
- /* */
-
- ***************
- *** 396,402 ****
- if ((in = open (file, 0)) == NOTOK)
- admonish (file, "unable to re-open");
- else {
- ! (void) lseek (out, 0L, 2);
- (void) strcpy (buf, "\nMessage not delivered to anyone.\n");
- (void) write (out, buf, strlen (buf));
- (void) strcpy (buf, "\n------- Unsent Draft\n\n");
- --- 397,403 ----
- if ((in = open (file, 0)) == NOTOK)
- admonish (file, "unable to re-open");
- else {
- ! (void) lseek (out, (off_t)0, 2);
- (void) strcpy (buf, "\nMessage not delivered to anyone.\n");
- (void) write (out, buf, strlen (buf));
- (void) strcpy (buf, "\n------- Unsent Draft\n\n");
- ***************
- *** 408,414 ****
- if (rename (file, strcpy (buf, m_backup (file))) == NOTOK)
- admonish (buf, "unable to rename %s to", file);
- }
- ! (void) lseek (out, 0L, 0);
- (void) dup2 (out, fileno (stdin));
- (void) close (out);
- (void) sprintf (buf, "send failed on %s",
- --- 409,415 ----
- if (rename (file, strcpy (buf, m_backup (file))) == NOTOK)
- admonish (buf, "unable to rename %s to", file);
- }
- ! (void) lseek (out, (off_t)0, 0);
- (void) dup2 (out, fileno (stdin));
- (void) close (out);
- (void) sprintf (buf, "send failed on %s",
- ***************
- *** 564,570 ****
- goto oops;
- }
-
- ! (void) lseek (fd, 0L, 0);
- if ((fp = fdopen (fd, "r")) == NULL) {
- if (debugsw)
- admonish (NULLCP, "unable to fdopen annotation list");
- --- 565,571 ----
- goto oops;
- }
-
- ! (void) lseek (fd, (off_t)0, 0);
- if ((fp = fdopen (fd, "r")) == NULL) {
- if (debugsw)
- admonish (NULLCP, "unable to fdopen annotation list");
- *** ../mh-6.8.1/uip/slocal.c Fri Aug 20 13:07:50 1993
- --- uip/slocal.c Wed Aug 25 15:56:25 1993
- ***************
- *** 1,6 ****
- /* slocal.c - MH style mailer to write to a local user's mailbox */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: slocal.c,v 1.23 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- /* This program implements mail delivery in the MH/MMDF style.
- --- 1,6 ----
- /* slocal.c - MH style mailer to write to a local user's mailbox */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: slocal.c,v 1.24 1993/08/25 17:28:16 jromine Exp $";
- #endif /* lint */
-
- /* This program implements mail delivery in the MH/MMDF style.
- ***************
- *** 181,187 ****
- static TYPESIG alrmser ();
-
-
- ! long lseek ();
- #ifndef __STDC__
- #ifdef SYS5
- struct passwd *getpwnam ();
- --- 181,187 ----
- static TYPESIG alrmser ();
-
-
- ! off_t lseek ();
- #ifndef __STDC__
- #ifdef SYS5
- struct passwd *getpwnam ();
- ***************
- *** 896,902 ****
- return NOTOK;
- }
-
- ! (void) lseek (fd, 0L, 0);
- if (mbx_copy (mailbox, md, fd, mapping, bp, verbose) == NOTOK) {
- adorn ("", "error writing to:");
- return NOTOK;
- --- 896,902 ----
- return NOTOK;
- }
-
- ! (void) lseek (fd, (off_t)0, 0);
- if (mbx_copy (mailbox, md, fd, mapping, bp, verbose) == NOTOK) {
- adorn ("", "error writing to:");
- return NOTOK;
- ***************
- *** 984,990 ****
- printf ("\tdelivering to pipe \"%s\"", cmd);
- (void) fflush (stdout);
- }
- ! (void) lseek (fd, 0L, 0);
-
- for (i = 0; (child_id = fork ()) == NOTOK && i < 5; i++)
- sleep (5);
- --- 984,990 ----
- printf ("\tdelivering to pipe \"%s\"", cmd);
- (void) fflush (stdout);
- }
- ! (void) lseek (fd, (off_t)0, 0);
-
- for (i = 0; (child_id = fork ()) == NOTOK && i < 5; i++)
- sleep (5);
- ***************
- *** 1145,1151 ****
- }
- if (i == NOTOK)
- goto you_lose;
- ! (void) lseek (fd1, 0L, 0);
- return fd1;
- }
-
- --- 1145,1151 ----
- }
- if (i == NOTOK)
- goto you_lose;
- ! (void) lseek (fd1, (off_t)0, 0);
- return fd1;
- }
-
- ***************
- *** 1221,1227 ****
- }
- (void) fclose (qfp);
-
- ! (void) lseek (fd1, 0L, 0);
-
- return fd1;
- }
- --- 1221,1227 ----
- }
- (void) fclose (qfp);
-
- ! (void) lseek (fd1, (off_t)0, 0);
-
- return fd1;
- }
- *** ../mh-6.8.1/uip/spop.c Fri Aug 20 13:07:57 1993
- --- uip/spop.c Wed Aug 25 15:56:33 1993
- ***************
- *** 4,10 ****
- /* spop.c - MH style mailer to write to a POP subscriber */
- #endif SPOP
- #ifndef lint
- ! static char ident[] = "@(#)$Id: spop.c,v 1.7 1993/08/20 15:55:23 jromine Exp $";
- #endif lint
-
- #ifndef SPOP
- --- 4,10 ----
- /* spop.c - MH style mailer to write to a POP subscriber */
- #endif SPOP
- #ifndef lint
- ! static char ident[] = "@(#)$Id: spop.c,v 1.8 1993/08/25 17:28:24 jromine Exp $";
- #endif lint
-
- #ifndef SPOP
- ***************
- *** 101,107 ****
- static struct bboard *bb[NBB];
-
-
- ! long lseek ();
-
- #ifndef __STDC__
- #ifdef SYS5
- --- 101,107 ----
- static struct bboard *bb[NBB];
-
-
- ! off_t lseek ();
-
- #ifndef __STDC__
- #ifdef SYS5
- ***************
- *** 161,167 ****
-
- for (i = 0; bp = bb[i]; i++)
- if (bp -> bb_file && *bp -> bb_file) {
- ! (void) lseek (fd, 0L, 0);
- #ifndef SPOP
- if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
- #else SPOP
- --- 161,167 ----
-
- for (i = 0; bp = bb[i]; i++)
- if (bp -> bb_file && *bp -> bb_file) {
- ! (void) lseek (fd, (off_t)0, 0);
- #ifndef SPOP
- if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
- #else SPOP
- ***************
- *** 302,308 ****
- if (rp_isbad (retval = sm_waend ()))
- return lose ("problem ending addresses; %s", rp_string (retval));
-
- ! (void) lseek (fd, 0L, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (rp_isbad (retval = sm_wtxt (buffer, i)))
- return lose ("problem writing text; %s", rp_string (retval));
- --- 302,308 ----
- if (rp_isbad (retval = sm_waend ()))
- return lose ("problem ending addresses; %s", rp_string (retval));
-
- ! (void) lseek (fd, (off_t)0, 0);
- while ((i = read (fd, buffer, sizeof buffer)) > 0)
- if (rp_isbad (retval = sm_wtxt (buffer, i)))
- return lose ("problem writing text; %s", rp_string (retval));
- ***************
- *** 411,417 ****
- goto sm_err;
- }
-
- ! (void) lseek (bb_fderr, 0L, 0);
- while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
- if (rp_isbad (sm_wtxt (buffer, i)))
- goto sm_err;
- --- 411,417 ----
- goto sm_err;
- }
-
- ! (void) lseek (bb_fderr, (off_t)0, 0);
- while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
- if (rp_isbad (sm_wtxt (buffer, i)))
- goto sm_err;
- ***************
- *** 464,470 ****
- *dp;
- char outbuf[BUFSIZ];
-
- ! (void) lseek (fd, 0L, 0);
-
- dp = (bp = outbuf) + sizeof outbuf;
- for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
- --- 464,470 ----
- *dp;
- char outbuf[BUFSIZ];
-
- ! (void) lseek (fd, (off_t)0, 0);
-
- dp = (bp = outbuf) + sizeof outbuf;
- for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
- ***************
- *** 598,604 ****
- if ((fd = open (tmpfil, 2)) == NOTOK)
- adios (EX_NOINPUT, tmpfil, "unable to re-open");
-
- ! (void) lseek (qd, 0L, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i)
- adios (EX_IOERR, tmpfil, "error writing");
- --- 598,604 ----
- if ((fd = open (tmpfil, 2)) == NOTOK)
- adios (EX_NOINPUT, tmpfil, "unable to re-open");
-
- ! (void) lseek (qd, (off_t)0, 0);
- while ((i = read (qd, buffer, sizeof buffer)) > 0)
- if (write (fd, buffer, i) != i)
- adios (EX_IOERR, tmpfil, "error writing");
- ***************
- *** 605,611 ****
- if (i == NOTOK)
- adios (EX_IOERR, "input", "error reading");
-
- ! (void) lseek (fd, 0L, 0);
-
- return fd;
- }
- --- 605,611 ----
- if (i == NOTOK)
- adios (EX_IOERR, "input", "error reading");
-
- ! (void) lseek (fd, (off_t)0, 0);
-
- return fd;
- }
- *** ../mh-6.8.1/uip/ttyd.h Fri Aug 20 13:08:08 1993
- --- uip/ttyd.h Wed Aug 25 15:56:43 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* ttyd.h - definitions for ttyd */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: ttyd.h,v 1.2 1993/08/25 17:29:12 jromine Exp $";
- + #endif
-
- /* The Regents of the University of California wish to make it known that:
- *
- ***************
- *** 33,38 ****
- --- 36,43 ----
- (errno > 0 && errno < sys_nerr ? sys_errlist[errno] : "Unknown error")
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- extern char *sys_siglist[];
- + #endif
- *** ../mh-6.8.1/uip/umhook.c Fri Aug 20 13:08:07 1993
- --- uip/umhook.c Wed Aug 25 15:56:42 1993
- ***************
- *** 1,6 ****
- /* umhook.c - one attempt at a rcvmail hook for UUCP mail */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: umhook.c,v 1.3 1992/11/04 01:05:01 jromine Exp $";
- #endif lint
-
- /* I don't comment my code heavily, so read this...
- --- 1,6 ----
- /* umhook.c - one attempt at a rcvmail hook for UUCP mail */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: umhook.c,v 1.4 1993/08/25 17:29:36 jromine Exp $";
- #endif lint
-
- /* I don't comment my code heavily, so read this...
- ***************
- *** 59,65 ****
-
- int sigser ();
-
- ! long lseek ();
- #ifdef SYS5
- #ifndef __STDC__
- struct passwd *getpwuid ();
- --- 59,65 ----
-
- int sigser ();
-
- ! off_t lseek ();
- #ifdef SYS5
- #ifndef __STDC__
- struct passwd *getpwuid ();
- ***************
- *** 226,233 ****
-
- if ((uucp = lkopen (mymail, 0)) == NOTOK)
- adios (NULLCP, "unable to lock and open %s", mymail);
- ! if (lseek (uucp, (long) offset, 0) == (long) NOTOK)
- ! adios (mymail, "unable to position to %ld offset on", offset);
-
- (void) strcpy (tmpfil, m_tmpfil (invo_name));
- if ((td1 = creat (tmpfil, TMPMODE)) == NOTOK)
- --- 226,233 ----
-
- if ((uucp = lkopen (mymail, 0)) == NOTOK)
- adios (NULLCP, "unable to lock and open %s", mymail);
- ! if (lseek (uucp, (off_t) offset, 0) == (off_t) NOTOK)
- ! adios (mymail, "unable to position to %ld offset on", (long) offset);
-
- (void) strcpy (tmpfil, m_tmpfil (invo_name));
- if ((td1 = creat (tmpfil, TMPMODE)) == NOTOK)
- ***************
- *** 266,272 ****
-
- (void) close (td1);
-
- ! (void) lseek (td2, 0L, 0);
- if ((fp = fdopen (td2, "r")) == NULL)
- adios (NULLCP, "no free file pointers");
-
- --- 266,272 ----
-
- (void) close (td1);
-
- ! (void) lseek (td2, (off_t)0, 0);
- if ((fp = fdopen (td2, "r")) == NULL)
- adios (NULLCP, "no free file pointers");
-
- ***************
- *** 319,325 ****
- }
- (void) fclose (out);
-
- ! (void) lseek (fd2, 0L, 0);
- seeksndr (fd2, mysndr);
-
- /* */
- --- 319,325 ----
- }
- (void) fclose (out);
-
- ! (void) lseek (fd2, (off_t)0, 0);
- seeksndr (fd2, mysndr);
-
- /* */
- ***************
- *** 329,335 ****
- adios ("fork", "unable to");/* NOTREACHED */
-
- case OK:
- ! (void) lseek (fd2, 0L, 0);
- if (fd2 != 0)
- (void) dup2 (fd2, 0);
- (void) freopen ("/dev/null", "w", stdout);
- --- 329,335 ----
- adios ("fork", "unable to");/* NOTREACHED */
-
- case OK:
- ! (void) lseek (fd2, (off_t)0, 0);
- if (fd2 != 0)
- (void) dup2 (fd2, 0);
- (void) freopen ("/dev/null", "w", stdout);
- ***************
- *** 441,447 ****
- && (fd = creat (mystat, TMPMODE)) == NOTOK)
- adios (mystat, "unable to write");
-
- ! (void) lseek (fd, 0L, 0);
- if (write (fd, (char *) st, sizeof *st) != (sizeof *st))
- adios (mystat, "error writing");
- }
- --- 441,447 ----
- && (fd = creat (mystat, TMPMODE)) == NOTOK)
- adios (mystat, "unable to write");
-
- ! (void) lseek (fd, (off_t)0, 0);
- if (write (fd, (char *) st, sizeof *st) != (sizeof *st))
- adios (mystat, "error writing");
- }
- *** ../mh-6.8.1/uip/vmh.c Fri Aug 20 13:07:59 1993
- --- uip/vmh.c Wed Aug 25 15:56:36 1993
- ***************
- *** 1,6 ****
- /* vmh.c - visual front-end to mh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: vmh.c,v 1.19 1993/02/26 22:00:33 jromine Exp $";
- #endif /* lint */
- #if defined(SYS5) && !defined(TERMINFO)
- /*
- --- 1,6 ----
- /* vmh.c - visual front-end to mh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: vmh.c,v 1.20 1993/08/25 17:29:44 jromine Exp $";
- #endif /* lint */
- #if defined(SYS5) && !defined(TERMINFO)
- /*
- ***************
- *** 189,196 ****
- --- 189,198 ----
-
- /* MISCELLANY */
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- static void adorn ();
-
- *** ../mh-6.8.1/uip/vmhsbr.c Fri Aug 20 13:08:15 1993
- --- uip/vmhsbr.c Wed Aug 25 15:56:46 1993
- ***************
- *** 1,6 ****
- /* vmhsbr.c - routines to help vmh along */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: vmhsbr.c,v 1.10 1992/12/15 00:20:22 jromine Exp $";
- #endif /* lint */
-
- /* TODO (for vrsn 2):
- --- 1,6 ----
- /* vmhsbr.c - routines to help vmh along */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: vmhsbr.c,v 1.11 1993/08/25 17:29:53 jromine Exp $";
- #endif /* lint */
-
- /* TODO (for vrsn 2):
- ***************
- *** 26,33 ****
- --- 26,35 ----
-
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- static int rclose();
- /* */
- *** ../mh-6.8.1/uip/wmh.c Fri Aug 20 13:08:17 1993
- --- uip/wmh.c Wed Aug 25 15:56:49 1993
- ***************
- *** 1,6 ****
- /* wmh.c - window front-end to mh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: wmh.c,v 1.4 1992/11/04 02:29:30 jromine Exp $";
- #endif lint
-
- /* TODO:
- --- 1,6 ----
- /* wmh.c - window front-end to mh */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: wmh.c,v 1.5 1993/08/25 17:29:59 jromine Exp $";
- #endif lint
-
- /* TODO:
- ***************
- *** 144,151 ****
- --- 144,153 ----
-
- /* MISCELLANY */
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
- void adorn ();
-
- *** ../mh-6.8.1/zotnet/mf/mmdfI/src/uucp/qu2uu_send.c Fri Aug 20 13:07:48 1993
- --- zotnet/mf/mmdfI/src/uucp/qu2uu_send.c Wed Aug 25 15:56:23 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- #define MFDEBUG /* temporarily */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: qu2uu_send.c,v 1.2 1993/08/25 17:32:12 jromine Exp $";
- + #endif
-
- /* qu2uu_send.c - manager for qu --> uu */
-
- ***************
- *** 204,210 ****
- if (mf_fd == NOTOK)
- qu_rtinit (pos);
- else
- ! lseek (mf_fd, pos, 0);
- }
-
-
- --- 207,213 ----
- if (mf_fd == NOTOK)
- qu_rtinit (pos);
- else
- ! lseek (mf_fd, (off_t) pos, 0);
- }
-
-
- ***************
- *** 249,255 ****
- FILE * fp;
- #endif MFDEBUG
-
- ! lseek (md, 0L, 0);
- if ((qd = dup (md)) == NOTOK)
- return NOTOK;
-
- --- 252,258 ----
- FILE * fp;
- #endif MFDEBUG
-
- ! lseek (md, (off_t)0, 0);
- if ((qd = dup (md)) == NOTOK)
- return NOTOK;
-
- ***************
- *** 276,282 ****
- goto ml_err;
- ml_txt (buffer);
- #ifdef MFDEBUG
- ! lseek (md, 0L, 0);
- if ((fd = dup (md)) == NOTOK)
- ml_txt ("unable to dup() descriptor for message copy\n");
- else
- --- 279,285 ----
- goto ml_err;
- ml_txt (buffer);
- #ifdef MFDEBUG
- ! lseek (md, (off_t)0, 0);
- if ((fd = dup (md)) == NOTOK)
- ml_txt ("unable to dup() descriptor for message copy\n");
- else
- *** ../mh-6.8.1/zotnet/mf/mmdfI/src/uucp/rmail.c Fri Aug 20 13:07:48 1993
- --- zotnet/mf/mmdfI/src/uucp/rmail.c Wed Aug 25 15:56:23 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- #define MFDEBUG /* temporarily */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: rmail.c,v 1.2 1993/08/25 17:32:49 jromine Exp $";
- + #endif
-
- #include "util.h"
- #include "mmdf.h"
- ***************
- *** 666,672 ****
- return NOTOK;
- }
- fclose (out);
- ! lseek (td, 0L, 0);
-
- strcpy (mmdfil, "/tmp/mmdfXXXXXX");
- unlink (mktemp (mmdfil));
- --- 669,675 ----
- return NOTOK;
- }
- fclose (out);
- ! lseek (td, (off_t)0, 0);
-
- strcpy (mmdfil, "/tmp/mmdfXXXXXX");
- unlink (mktemp (mmdfil));
- ***************
- *** 691,697 ****
-
- switch (i = uucp_to_mmdf (td, fd, TRUE)) {
- case OK:
- ! lseek (md, 0L, 0);
- if ((mmdf = fdopen (md, "r")) != NULL)
- break;
-
- --- 694,700 ----
-
- switch (i = uucp_to_mmdf (td, fd, TRUE)) {
- case OK:
- ! lseek (md, (off_t)0, 0);
- if ((mmdf = fdopen (md, "r")) != NULL)
- break;
-
- ***************
- *** 705,711 ****
- goto ml_err;
- ml_txt (buffer);
- #ifdef MFDEBUG
- ! lseek (td, 0L, 0);
- if ((md = dup (td)) == NOTOK)
- ml_txt ("unable to dup() descriptor for message copy\n");
- else
- --- 708,714 ----
- goto ml_err;
- ml_txt (buffer);
- #ifdef MFDEBUG
- ! lseek (td, (off_t)0, 0);
- if ((md = dup (td)) == NOTOK)
- ml_txt ("unable to dup() descriptor for message copy\n");
- else
- *** ../mh-6.8.1/zotnet/mf/muinc.c Fri Aug 20 13:07:45 1993
- --- zotnet/mf/muinc.c Wed Aug 25 15:56:19 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* muinc.c - mmdf to uucp inc */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: muinc.c,v 1.2 1993/08/25 17:30:36 jromine Exp $";
- + #endif
-
- #include "mf.h"
- #include <stdio.h>
- ***************
- *** 101,107 ****
- die ("unable to open UUCP mailbox '%s'", file);
- }
-
- ! lseek (fd, 0L, 2);
-
- return fd;
- }
- --- 104,110 ----
- die ("unable to open UUCP mailbox '%s'", file);
- }
-
- ! lseek (fd, (off_t)0, 2);
-
- return fd;
- }
- ***************
- *** 128,134 ****
- int i;
- char buffer[BUFSIZ];
-
- ! lseek (in, 0L, 0);
-
- while ((i = read (in, buffer, sizeof buffer)) > 0)
- if (write (out, buffer, i) != i)
- --- 131,137 ----
- int i;
- char buffer[BUFSIZ];
-
- ! lseek (in, (off_t)0, 0);
-
- while ((i = read (in, buffer, sizeof buffer)) > 0)
- if (write (out, buffer, i) != i)
- *** ../mh-6.8.1/zotnet/mf/uminc.c Fri Aug 20 13:07:44 1993
- --- zotnet/mf/uminc.c Wed Aug 25 15:56:18 1993
- ***************
- *** 1,4 ****
- --- 1,7 ----
- /* uminc.c - uucp to mmdf inc */
- + #ifndef lint
- + static char Id[] = "@(#)$Id: uminc.c,v 1.2 1993/08/25 17:31:30 jromine Exp $";
- + #endif
-
- #include "mf.h"
- #include <stdio.h>
- ***************
- *** 14,20 ****
- static char uucpbox[LINESIZ];
-
-
- ! long lseek ();
-
- /* */
-
- --- 17,23 ----
- static char uucpbox[LINESIZ];
-
-
- ! off_t lseek ();
-
- /* */
-
- ***************
- *** 144,150 ****
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (long) - count, 2) == (long) NOTOK
- || read (fd, ldelim, count) != count)
- die ("error reading MMDF mailbox '%s'", file);
- ldelim[count] = NULL;
- --- 147,153 ----
-
- count = strlen (mmdlm2);
-
- ! if (lseek (fd, (off_t) - count, 2) == (off_t) NOTOK
- || read (fd, ldelim, count) != count)
- die ("error reading MMDF mailbox '%s'", file);
- ldelim[count] = NULL;
- ***************
- *** 167,173 ****
- int i;
- char buffer[BUFSIZ];
-
- ! lseek (in, 0L, 0);
-
- while ((i = read (in, buffer, sizeof buffer)) > 0)
- if (write (out, buffer, i) != i)
- --- 170,176 ----
- int i;
- char buffer[BUFSIZ];
-
- ! lseek (in, (off_t)0, 0);
-
- while ((i = read (in, buffer, sizeof buffer)) > 0)
- if (write (out, buffer, i) != i)
- *** ../mh-6.8.1/zotnet/mts/client.c Fri Aug 20 13:07:43 1993
- --- zotnet/mts/client.c Wed Aug 25 15:56:17 1993
- ***************
- *** 1,6 ****
- /* client.c - connect to a server */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: client.c,v 1.20 1993/08/20 15:55:35 jromine Exp $";
- #endif /* lint */
-
- #if defined(SYS5) && defined(AUX)
- --- 1,6 ----
- /* client.c - connect to a server */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: client.c,v 1.21 1993/08/25 17:32:58 jromine Exp $";
- #endif /* lint */
-
- #if defined(SYS5) && defined(AUX)
- ***************
- *** 53,60 ****
- --- 53,62 ----
- /* */
-
- extern int errno;
- + #ifndef BSD44
- extern int sys_nerr;
- extern char *sys_errlist[];
- + #endif
-
-
- struct addrent {
- *** ../mh-6.8.1/zotnet/mts/lock.c Fri Aug 20 13:07:43 1993
- --- zotnet/mts/lock.c Wed Aug 25 15:56:16 1993
- ***************
- *** 1,6 ****
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- --- 1,6 ----
- /* lock.c - universal locking routines */
- #ifndef lint
- ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
- #endif
- /* compile-time priority:
- * LOCKF use if defined
- ***************
- *** 265,273 ****
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, 0L, SEEK_END);
- #else
- ! lseek (fd, 0L, L_XTND);
- #endif
- return fd;
- }
- --- 265,273 ----
- /* see if we should be at the end */
- if (j & O_APPEND)
- #ifdef SVR4
- ! lseek (fd, (off_t)0, SEEK_END);
- #else
- ! lseek (fd, (off_t)0, L_XTND);
- #endif
- return fd;
- }
- ***************
- *** 322,328 ****
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
- --- 322,328 ----
- break;
- #endif
- #else /* LOCKF */
- ! lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
- lockf (fd, F_ULOCK, 0L);
- break;
- #endif
-